package com.xlh.support.quiz.dao;

import com.xlh.support.quiz.domain.Quiz;
import com.xlh.support.quiz.domain.example.QuizExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuizMapper {
    long countByExample(QuizExample example);

    int deleteByExample(QuizExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Quiz record);

    int insertSelective(Quiz record);

    List<Quiz> selectByExample(QuizExample example);

    Quiz selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Quiz record, @Param("example") QuizExample example);

    int updateByExample(@Param("record") Quiz record, @Param("example") QuizExample example);

    int updateByPrimaryKeySelective(Quiz record);

    int updateByPrimaryKey(Quiz record);
}